package com.qixin.modules.ea.service;

import com.qixin.modules.ea.entity.EaBookDetail;
import com.qixin.modules.ea.entity.EaApplyDetail;
import com.qixin.modules.ea.entity.EaEntertainReceptionActivity;
import com.qixin.modules.ea.entity.EaEntertain;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qixin.modules.eaApplication.entity.EaEntertainApply;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: ea_entertain
 * @Author: qixin-boot
 * @Date:   2022-01-21
 * @Version: V1.0
 */
public interface IEaEntertainService extends IService<EaEntertain> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(EaEntertain eaEntertain, List<EaBookDetail> eaBookDetailList, List<EaEntertainApply> eaEntertainApplyList, List<EaEntertainReceptionActivity> eaEntertainReceptionActivityList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(EaEntertain eaEntertain,List<EaBookDetail> eaBookDetailList,List<EaEntertainApply> eaEntertainApplyList,List<EaEntertainReceptionActivity> eaEntertainReceptionActivityList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
